package com.cbh.feign.controller.user;



import java.util.List;

import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;
import com.cbh.api.model.integral.IntegralRecord;
import com.cbh.api.model.integral.UserIntegral;

public interface IntegralControllerBase {

	@RequestMapping(value = "/auth/v1/app/integral", method = RequestMethod.POST)
	public ApiResult<UserIntegral> registeredThreeParty(
			@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1,
			@RequestParam(value = "integralRecordFlag", required = true) String integralRecordFlag,
			@RequestParam(value = "integralRecordNum", required = true) String integralRecordNum,
			@RequestParam(value = "integralRecordDo", required = true) String integralRecordDo);

	@RequestMapping(value = "/auth/v1/app/integral/GetIntegralRecord", method = RequestMethod.GET)
	public ApiResult<List<IntegralRecord>> integralRecord(
			@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1);

	@RequestMapping(value = "/auth/v1/app/integral/GetIntegralRecordBypara", method = RequestMethod.GET)
	public ApiResult<List<IntegralRecord>> integralRecordBypara(
			@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1,
			@RequestParam(value = "integralRecordFlag", required = false) String integralRecordFlag,
			@RequestParam(value = "integralRecordDo", required = false) String integralRecordDo);

	@RequestMapping(value = "/auth/v1/app/integral/GetIntegralUser", method = RequestMethod.GET)
	public ApiResult<UserIntegral> integralUser(
			@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1);

	@RequestMapping(value = "/auth/v1/app/integral/GetIntegralUserByAccount", method = RequestMethod.GET)
	public ApiResult<UserIntegral> integralByAccount(
			@RequestHeader(value = "accountToken", required = false) String accountToken,
			@RequestParam(value = "accountToken", required = false) String accountToken1,
			@RequestParam(value = "userAccount", required = true) String userAccount);

}
